#define _GNU_SOURCE
#include <unistd.h>
#include<sys/syscall.h>
#include<stdio.h>
#include<stdlib.h>
int main(){
    pid_t pid;
    int nicevalue;
    int flag;
    int p = 0;
    int n = 0;
    int *prio;
    int *nice;
    prio = &p;
    nice = &n;
    /*
 *     get pid
 *         */
    printf("please input pid：\n");
    scanf("%d",&pid);
    /*
 *     get nice；
 *         */
    printf("pid is copied success\nplease input nice：\n");
    scanf("%d",&nicevalue);
    /*
 *     get flag；
 *         */
    printf("nice is copied success\nplease input flag：\n");
    scanf("%d",&flag);
    /*
 *     调用添加的系统调用；
 *         */
    syscall(436,pid,flag,nicevalue,prio,nice);
    /*
 *     输出最新的prio以及nice；
 *         */
    printf("now the nice is %d\n,prio is%d\n",n,p);
    return 0;
}
